<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// API 分块开发配置路由
\think\Route::rule([
    'api/driver.index/index'  => 'api/driver.home/index',
    'api/driver.index/login'  => 'api/driver.login/login',
    'api/driver.index/logout' => 'api/driver.login/logout',
    'api/driver.index/changePassword' => 'api/driver.login/changePassword',
    'api/driver.index/setWithdrawPass' => 'api/driver.account/setWithdrawPass',
    
    'api/driver.index/addCard'    => 'api/driver.account/addCard',
    'api/driver.index/cardDetail' => 'api/driver.account/cardDetail',
    'api/driver.index/editCard'   => 'api/driver.account/editCard',
    'api/driver.index/delCard'    => 'api/driver.account/delCard',
    'api/driver.index/cardList'   => 'api/driver.account/cardList',
    'api/driver.index/addFeedback'=> 'api/driver.account/addFeedback',
    'api/driver.index/listFeedback' => 'api/driver.account/listFeedback',
    'api/driver.index/viewFeedback' => 'api/driver.account/viewFeedback',
    'api/driver.index/getBlance'    => 'api/driver.account/getBlance',
    
    'api/driver.index/addWithdraw'  => 'api/driver.account/addWithdraw',
    'api/driver.index/viewWithdraw' => 'api/driver.account/viewWithdraw',
    'api/driver.index/listWithdraw' => 'api/driver.account/listWithdraw',
    'api/driver.index/delWithdraw'  => 'api/driver.account/delWithdraw',

    'api/driver.index/addOil'  => 'api/driver.Oil/addOil',
    'api/driver.index/delOil'  => 'api/driver.Oil/delOil',
    'api/driver.index/viewOil' => 'api/driver.Oil/viewOil',
    'api/driver.index/listOil' => 'api/driver.Oil/listOil',
    'api/driver.index/addBind' => 'api/driver.Push/addBind',

    'api/driver.index/getOrderFee'      => 'api/driver.Order/getOrderFee',
    'api/driver.index/getTrackByOrder'  => 'api/driver.Order/getTrackByOrder',
    'api/driver.index/orderDetail'      => 'api/driver.Order/orderDetail',
    'api/driver.index/orderList'        => 'api/driver.Order/orderList',

    'api/passenger/getOrderTrack'        => 'api/passenger.Order/getOrderTrack',
    'api/passenger/getDriverGps'         => 'api/passenger.Order/getDriverGps',
    'api/passenger/getOrderDetail'         => 'api/passenger.Order/getOrderDetail',
    'api/passenger/getOrderFee'         => 'api/passenger.Order/getOrderFee',
 ]);

return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    '[hello]'     => [
        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],
    'login'	=> '/admin/login'
];
